#ifndef _NVS_H
#define _NVS_H
#include "esp_err.h"
#include "esp_log.h"
esp_err_t init_nvs(void);
esp_err_t save_struct_to_nvs(const char* namespace, const char* key, void* data,size_t size); 
esp_err_t load_struct_from_nvs(const char* namespace, const char* key, void* data,size_t size);
esp_err_t save_array_to_nvs(const char* namespace, const char* key, 
                           void* array, size_t element_size, size_t count);
int load_array_from_nvs(const char* namespace, const char* key, 
                       void* array, size_t element_size, size_t max_count);
#endif